package com.jie.component.filter.config;

import com.jie.common.util.LogUtil;
import com.jie.component.filter.core.BaseParameterFilter;
import com.jie.component.filter.core.RequestWrapperFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.core.annotation.Order;

/**
 * @author jie
 * @version 1.0 2025-02-12
 */
public class FilterAutoConfig {

    @Bean
    @Order(-10)
    public RequestWrapperFilter requestWrapperFilter() {
        LogUtil.autoConfigLog("RequestWrapperFilter");
        return new RequestWrapperFilter();
    }

    @Bean
    @Order(1)
    public BaseParameterFilter baseParameterFilter() {
        LogUtil.autoConfigLog("BaseParameterFilter");
        return new BaseParameterFilter();
    }

}
